[Enhancement] [ccr] add support for restore to ccr#45162
Conversation
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
|
run buildall |
|
clang-tidy review says "All clean, LGTM! 👍" |
8091a1b to
f780009
Compare
|
clang-tidy review says "All clean, LGTM! 👍" |
f780009 to
4b91bfe
Compare
|
clang-tidy review says "All clean, LGTM! 👍" |
|
run buildall |
4b91bfe to
5e011f0
Compare
|
clang-tidy review says "All clean, LGTM! 👍" |
|
run buildall |
|
run p0 |
| logEdit(OperationType.OP_ALTER_REPOSITORY, repo); | ||
| } | ||
|
|
||
| public void logRestoreJob(RestoreJob job) { |
There was a problem hiding this comment.
Doris' editlog has a replay process, and the specific steps are in EditLog.loadJournal. Both the log phase and the replay phase need to add the binlog to the binlog manager. If a RestoreBinLogInfo is temporarily created in the log phase, then it will not be possible to construct RestoreBinLogInfo in the replay phase.
| import java.util.Map; | ||
| import java.util.stream.Collectors; | ||
|
|
||
| public class RestoreBinLogInfo { |
There was a problem hiding this comment.
Consider keeping consistent with the existing word Binlog.
5e011f0 to
68d13d2
Compare
|
clang-tidy review says "All clean, LGTM! 👍" |
68d13d2 to
83f4c7e
Compare
83f4c7e to
a071642
Compare
|
We're closing this PR because it hasn't been updated in a while. |
What problem does this PR solve?
Issue Number: close #43557
Related PR: #303
Problem Summary:
add support for restore to ccr
adding binlog for restore only if after restore is finished.
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)